from peewee import *
from config.base_config import get_db

db = get_db()


class UserAccount(Model):
    id = IntegerField(primary_key=True)
    plat = CharField()
    strategy = CharField()
    account_id = IntegerField(null=True)
    user_name = CharField()
    nick_name = CharField()
    api_key = CharField()
    secret_key = CharField()
    passphrase = CharField()
    status = IntegerField()

    class Meta:
        database = db
        table_name = "user_account"
